package com.dmxh.result;

public enum ResultConstant {
    SUCCESS("1", "操作成功"),
    FAIL("5", "操作失败"),
    SUCCESS_LOGIN("2", "登陆成功"),
    ERROR_LOGIN("3", "登陆失败"),
    ERROR_TOKEN("4","无效TOKEN"),
    ERROR_CHANGE_PASSWORD("6","旧密码错误"),
    SMS_SUCCESS("7","信息发送成功"),
    REPEAT_PHONE("8","手机号已被注册"),
    PARAM_NULL("9","参数为空"),
    TIME_LIMIT_ONE_MINUTE("10","发送时间未超过一分钟"),
    TIME_OUT("11","验证码超时"),
    ;

    private String code;
    private String message;

    ResultConstant(String code, String message) {
        this.code = code;
        this.message = message;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
